<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加商品</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
        }
        h2 {
            text-align: center;
            color: #333;
        }
        form {
            width: 50%;
            margin: 40px auto;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        label {
            display: block;
            margin-bottom: 10px;
        }
        label span {
            display: inline-block;
            width: 80px;
            text-align: right;
        }
        input[type="text"], input[type="file"] {
            width: 80%;
            height: 30px;
            padding: 10px;
            margin: 10px;
            border: 1px solid #ccc;
        }
        input[type="submit"] {
            width: 100%;
            height: 40px;
            padding: 10px;
            margin: 20px 0;
            border: none;
            border-radius: 10px;
            background-color: #4CAF50;
            color: #fff;
            cursor: pointer;
        }
        input[type="submit"]:hover {
            background-color: #3e8e41;
        }
    </style>
</head>
<body>
<h2>添加商品</h2>
<form action="AddGoodsServlet" method="post" enctype="multipart/form-data">
    <label><span>商品名：</span><input type="text" name="name"></label>
    <label><span>商品价格：</span><input type="text" name="price"></label>
    <label><span>商品数量：</span><input type="text" name="quantity"></label>
    <label><span>商品图片：</span><input type="file" name="image"></label>
    <input type="submit" value="添加">
</form>
</body>
</html>
